home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / dviselect / dvi.h < prev    next >
C/C++ Source or Header  |  1989-06-15  |  853b  |  34 lines

  1. /*
  2.  * Copyright (c) 1987 University of Maryland Department of Computer Science.
  3.  * All rights reserved.  Permission to copy for any purpose is hereby granted
  4.  * so long as this copyright notice remains intact.
  5.  */
  6.  
  7. /* DVI file info */
  8.  
  9. /*
  10.  * Units of distance are stored in scaled points, but we can convert to
  11.  * units of 10^-7 meters by multiplying by the numbers in the preamble.
  12.  */
  13.  
  14. /* the structure of the stack used to hold the values (h,v,w,x,y,z) */
  15. struct dvi_stack {
  16.     i32    h;        /* the saved h */
  17.     i32    v;        /* the saved v */
  18.     i32    w;        /* etc */
  19.     i32    x;
  20.     i32    y;
  21.     i32    z;
  22. };
  23.  
  24. struct    dvi_stack dvi_current;    /* the current values of h, v, etc */
  25.  
  26. int    dvi_f;            /* the current font */
  27.  
  28. #define dvi_h dvi_current.h
  29. #define dvi_v dvi_current.v
  30. #define dvi_w dvi_current.w
  31. #define dvi_x dvi_current.x
  32. #define dvi_y dvi_current.y
  33. #define dvi_z dvi_current.z
  34.